Skip to content

fix: convert duplicate YAML merge key panic to diagnostic error#5188

Open
denik wants to merge 4 commits intomainfrom
denik/merge-node-already-set
Open

fix: convert duplicate YAML merge key panic to diagnostic error#5188
denik wants to merge 4 commits intomainfrom
denik/merge-node-already-set

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented May 6, 2026

Better error for #5182

denik added 2 commits May 6, 2026 10:52
Replacing the panic with a LocationError that carries the source
location, then converting it to a diagnostic in LoadFromBytes so the
output shows the file/line/column and a clear explanation of what is
not allowed and how to fix it.

Co-authored-by: Isaac
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:42 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:42 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:46 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 09:46 — with GitHub Actions Inactive
@denik denik marked this pull request as ready for review May 6, 2026 11:01
@denik denik temporarily deployed to test-trigger-is May 6, 2026 11:03 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is May 6, 2026 11:03 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants